package com.orhonit.ipb.portal.biz;

import java.util.List;

import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.netflix.discovery.converters.Auto;
import com.orhonit.ipb.portal.entity.BaseUserExtension;
import com.orhonit.ipb.portal.entity.EducationCode;
import com.orhonit.ipb.portal.mapper.BaseUserExtensionMapper;
import com.orhonit.ipb.security.common.biz.BaseBiz;


/**
 * 用户扩展表
 *
 * @author caodw
 * @email caodw@qq.com
 * @version 2018-04-23 11:23:41
 */
@Service
public class BaseUserExtensionBiz extends BaseBiz<BaseUserExtensionMapper,BaseUserExtension> {
    @Autowired
	private BaseUserExtensionMapper baseUserExtensionMapper;
    /**
	 * 通过用户id查找用户信息
	 * @param userId 用户id
	 * @return BaseUserExtension
	 */
    public BaseUserExtension getBaseUserExtensionByuserId(String userId){
    	return baseUserExtensionMapper.getBaseUserExtensionByuserId(userId);
    }
    public boolean updateBaseUserExtension(BaseUserExtension baseUserExtension){
    	boolean a=false;
    	int count=baseUserExtensionMapper.updateBaseUserExtension(baseUserExtension);
    	if(count>0){
    		a=true;
    	}
    	return a;
    }
    
}